package com.zwd.deep.mapper;

import com.zwd.deep.entity.po.Task;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 任务表 Mapper 接口
 * </p>
 *
 * @author zwd
 * @since 2024-11-13
 */
@Mapper
public interface TaskMapper extends BaseMapper<Task> {

    @Select("select * from task where task_id = $(taskId)")
    Task selectByTaskId(String taskId);

    @Select("select * from task where user_id = $(userId)")
    List<Task> selectHistory(String s);
}
